# Create your views here.
from django_filters.views import FilterView

from api.toolkit.filters import ToolkitFilter
from toolkit.models import Toolkit
from utils.paginator import PaginationMixin, LoverViewMixin


class ToolkitView(FilterView):
    model = Toolkit
    context_object_name = "toolkits"
    template_name = "frontend/toolkit/index.html"
    filterset_class = ToolkitFilter


class ToolkitListView(PaginationMixin, LoverViewMixin, FilterView):
    model = Toolkit
    context_object_name = "toolkits"
    template_name = "backend/toolkit/index.html"
    filterset_class = ToolkitFilter
